<div id="sanpham_right">
           	    <div id="title_right">
            		<p id="title_right_left"></p>
            		<div id="title_right_center">
            		  <p class="chu_title">CẬP NHẬT HÓA ĐƠN</p>
            		</div>
           			<p id="title_right_right"></p>
             	</div>
                <div id="noidung_right">

<form name = "frm_edithoadon" method = "post" action = "">
<table width = "590" cellpadding = "2" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">
<tr> 
	<td valign = "top"> <div align = "center">Khách Hàng</div> </td>
	<td valign = "top">
		<select name = "cmb_khachhang" size = "1">
		<?php 
		if(is_array($data['listkh'])){
			foreach ($data['listkh'] as $item){
		?>
			<option value = "<?php echo $item['MaKH'];?>"
				<?php
					if($data['MaKH'] == $item['MaKH']){
						echo "selected";
					} 
					
				?>>
				<?php echo $item['TenKH'];?>
			</option>
		<?php
			}
		}
		?>
		</select>
	</td>
</tr>
<tr> 
	<td valign = "top" align = "center"> <div> Ngày Lập </div> </td>
	<td valign = "top" align = "left">
		<input name = "ngaylap" type = "text" value = "<?php echo $data['NgayLap'];?>" id="input"/>
	</td>
</tr>
<tr> 
	<td valign = "top" align = "center"> <div>Người Lập </div> </td>
	<td valign = "top" align = "left">
		<input name = "nguoilap" type = "text" value = "<?php echo $data['NguoiLap'];?>" id="input"/>
	</td>
</tr>
<tr> 
	<td width = "100" valign = "top"> <div align = "center">Tình Trạng</div> </td>
	<td width = "" valign = "top">
		<select name = "TinhTrang">
		<?php 
			if($data['TinhTrang'] == 1){
				echo '<option value = "1"> Duyệt </option>';
				echo '<option value = "0"> Chưa duyệt </option>';}
			else {
				echo '<option value = "0"> Chưa duyệt</option>';
				echo '<option value = "1"> Duyệt </option>';
			}
			
		?>
			
		</select>
	</td>
</tr>




<tr>
	<td align = "center" colspan = "2"> <div> <input name = "btok" type = "submit" value = "Cập Nhật"/> </div> </td>
</tr>
</table>
</form>
</div>
</div>